package com.diandi.signature.enums.fdd;

/**
 *  CA信息状态
 * @author mwz
 * @create 2017-08-23 13:11
 * @version V1.0.0

 */
public enum CAInfoStatus {
    申请成功("1","申请成功"),
    申请处理中("2","申请处理中"),
    申请失败("3","申请失败"),
    信息落库("0","信息落库"),

    ;
    private String type;
    private String typeName;

    CAInfoStatus(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static CAInfoStatus getEmun(String type){
        for (CAInfoStatus checkParamsType : CAInfoStatus.values()) {
            if(checkParamsType.getType().equals(type)){
                return checkParamsType;
            }
        }
        return null;
    }
}
